package com.whfc.common.enums;

/**
 * 学历
 *
 * @author guodong_sun
 * @Description:
 * @date 2019年8月27日
 */
public enum Education {

    POSTDOCTER(1, "博士后"),

    DOCTER(2, "博士"),

    POSTGRADUATE(3, "研究生"),

    MASTER(4, "硕士"),

    UNDERGRADUATE(5, "本科"),

    COLLEGE(6, "大专"),

    SPECIAL(7, "中专"),

    SENIOR(8, "高中"),

    BELOWJUNIOR(9, "专科以下学历"),

    OTHER(10, "其他");
    private Integer value;

    private String desc;

    Education(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static Education parseValue(Integer value) {
        switch (value) {
            case 1:
                return POSTDOCTER;
            case 2:
                return DOCTER;
            case 3:
                return POSTGRADUATE;
            case 4:
                return MASTER;
            case 5:
                return UNDERGRADUATE;
            case 6:
                return COLLEGE;
            case 7:
                return SPECIAL;
            case 8:
                return SENIOR;
            case 9:
                return BELOWJUNIOR;
            case 10:
                return OTHER;
            default:
                return OTHER;
        }
    }

}
